import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
  //效果图
  {
    path: '/xgt',

    component: () => import('../views/XiaoGuoTu.vue'),
  },
  //粉丝
  {
    path: '/fensi',
    name: 'fensi',
    component: () => import('../views/yin/FenSi.vue'),
  },
  //关注
  {
    path: '/guanzhu',
    name: 'guanzhu',
    component: () => import('../views/yin/GuanZhu.vue'),
  },
  //我的收藏
  {
    path: '/wodsouc',
    name: 'wodsouc',
    component: () => import('../views/yin/WodSouc.vue'),
  },
  //我的
  {
    path: '/wode',
    name: 'wode',
    component: () => import('../views/yin/WoDe.vue'),
    meta:{showTab:true},
  },
  //个人介绍
  {
    path: '/gerenjs',
    name: 'gerenjs',
    component: () => import('../views/yin/GeRenJS.vue'),
  },
  //个人资料
  {
    path: '/geren',
    name: 'geren',
    component: () => import('../views/yin/GeRen.vue'),
  },
  //设置
  {
    path: '/shezhi',
    name: 'shezhi',
    component: () => import('../views/yin/SheZhi.vue'),
  },
  {
    path: "/interact",
    name: "interact",
    component: () => import("../views/Interact.vue"),
  },
  {
    path: "/system",
    name: "system",
    component: () => import("../views/System.vue"),
  },
  // 消息模块
  {
    path: "/message",
    name: "message",
    component: () => import("../views/Message.vue"),
    meta:{showTab:true}
  },
  //找回密码
  {
    path: "/password",
    name: "password",
    component: () => import("../views/Password.vue"),
  },
  // 注册
  {
    path: "/register",
    name: "register",
    component: () => import("../views/Register.vue"),
    meta:{showTab:false}
  },
  // 登录
  {
    path: "/login",
    name: "login",
    component: () => import("../views/Login.vue"),
    meta:{showTab:false}
  },
  {
    path: "/gongsiin",
    name: "gongsiin",
    component: () => import("../views/company/Gongsiin.vue"),
  },
  {
    path: "/shejishi",
    name: "shejishi",
    component: () => import("../views/company/Shejishi.vue"),
  },
  {
    path: "/pinpai",
    name: "pinpai",
    component: () => import("../views/company/Pinpai.vue"),
  },
  {
    path: "/sheji",
    name: "sheji",
    component: () => import("../views/company/Sheji.vue"),
  },
  {
    path: "/gongsi",
    name: "gongsi",
    component: () => import("../views/company/Gongsi.vue"),
  },
  // 地图
  {
    path: "/mapmap",
    name: "map",
    component: () => import("../views/company/Mapmap.vue"),
  },
  // 位置
  {
    path: "/position",
    name: "position",
    component: () => import("../views/company/Position.vue"),
  },
  // 公司设计模块
  {
    path: "/company",
    name: "company",
    component: () => import("../views/Company.vue"),
    meta:{showTab:true}
  },
  //首页
  {
    path: "/",
    name: "routeName",
    component: () => import("../views/index.vue"),
    meta:{showTab:true}
  },

  {
    path: "/home",
    name: "home",
    component: () => import("../views/HomeView.vue"),
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
